package cool.taomu.toolkit.groovy

import com.google.auto.service.AutoService
import com.google.inject.AbstractModule
import com.google.inject.name.Names
import cool.taomu.toolkit.TaomuConfigure
import cool.taomu.toolkit.platform.inter.IPlatform

@AutoService(IPlatform)
class GroovyPlugin implements IPlatform {

    override note() {
        "Groovy 插件"
    }

    override packages() {
    }

    override module(TaomuConfigure config) {
        new AbstractModule() {
            override void configure() {
                bind(IScript).annotatedWith(Names.named("taomu.script.groovy")).to(GroovyScript)
            }
        }
    }

    override start() {
    }

    override init() {
    }

}
